﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - IAC.Co</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA5J2qBFVmY8SErfnjQnwJ07pG_o643HNo"></script>
 
</head>
<body>
    <div class="container">
        @Html.Partial("~/Views/Header/Header.cshtml")
        @RenderSection("slider",false)        
        @RenderSection("services", required: false)
        @RenderSection("title",required:false)
        @RenderBody()
        @Html.Partial("~/Views/Footer/Footer.cshtml")
    </div>
    

    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)
    <script type="text/javascript">

        $('.carousel').carousel({
            interval: 4000
        });

        jQuery(document).ready(function ($) {
            // Get current url
            // Select an a element that has the matching href and apply a class of 'active'. Also prepend a - to the content of the link
            var url = window.location.pathname;
            $('a[href="' + url + '"]').parent().addClass('active');
        });

    </script>
    <script type="text/javascript">
        jQuery(document).ready(function ($) {
            var map;

            var myLatlng = new google.maps.LatLng(10.801736, 106.711315);

            function initialize() {
                var mapOptions = {
                    zoom: 15,
                    center: myLatlng
                };
                map = new google.maps.Map(document.getElementById('map-canvas'),
                    mapOptions);

                // To add the marker to the map, use the 'map' property
                var marker = new google.maps.Marker({
                    position: myLatlng,
                    map: map,
                    title: "Chung cư Mỹ Đức"
                });
            }

            google.maps.event.addDomListener(window, 'load', initialize);

            
          
        });

    </script>
</body>
</html>
